﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AnimalSimulatorBasics
{
    class SquareFactory
    {
        private uint SizeX { set; get; }
        private uint SizeY { set; get; }
        
        SquareFactory(uint sizeX, uint sizeY)
        {
            SizeX = sizeX;
            SizeY = sizeY;
        }

        public Square[,] Produce()
        {
            var resultArray = new Square[SizeX,SizeY];

            for (int i = 0; i < SizeX; i++)
            {
                for (int j = 0; j < SizeY; j++)
                {
                    resultArray[i,j] = new Square();
                }
            }

            return resultArray;
        }

    }


    class Grid
    {
        private Square[,] _squareArray;

        Grid(uint sizeX, uint sizeY)
        {
            _squareArray = new Square[sizeX, sizeY];
        }
    }
}
